package com.android.zweibo.bean;

public final class Common {
  public final static int ACCOUNT_ADD = 1;  //添加帐号
  public final static int USER_LOGIN  = 2; //用户登录
  public final static int AUTHORIZE = 3;  //授权认证
  public final static int DIALOG_CLOSE = 4; //关闭对话框
  public final static int ACCESS_TOKEN = 5; //获取accessToken
  public final static int GET_ICON_NAME = 7;  //获取用户头像和名称
  public final static int GET_FRIEND_TIMELINE = 8; //获取时间线
  
  public final static String DB_NAME="weibo.db";//数据库名称
  public final static int DB_VERSION = 1;    //数据库版本
  public final static String USER_INFO_TB_NAME = "UserInfo";//数据库表名
  
  public final static String NOWUSER_SHARED = "login_user"; //登录用户的xml文件名
  //创建用户信息表
  public final static String USER_INFO_CREATE = "create table if not exists " 
	                                         + USER_INFO_TB_NAME + "(_id INTEGER PRIMARY KEY ," 
	                                         +"userId TEXT," 
	                                         +"userName TEXT,"
	                                         +" token TEXT," 
	                                         +"tokenSecret TEXT,"
	                                         +"isDefault TEXT," 
	                                         +"userIcon BLOB               )";
  //删除用户信息表
  public final static String USER_INFO_DROP = "drop table" + USER_INFO_TB_NAME ;
}
